package test.viewmodel;

import java.util.ArrayList;
import java.util.List;

import admin.dao.UserDAO;

import model.User;

public class UserDataModel {
	private List<User> allUser = new ArrayList<User>();
	
	public UserDataModel() {
		updateAllUser();
	}

	public List<User> getAllUser() {
		return allUser;
	}
	
	public void updateAllUser() {
		this.allUser = UserDAO.getAllUser();
	}

	public void removeUser(User selUser) {
		allUser.remove(selUser);
		
	}
}
